
import { CommonStatus } from "../../../interface";
import { BaseEntity } from "../../base/entity/base";
import { Column, Entity } from "typeorm";

@Entity('distributor_level', { comment: '分销商等级' })
export class DistributorLevelEntity extends BaseEntity {
    @Column({ comment: '名称' })
    name: string;

    @Column({ comment: '描述' })
    description: string;

    @Column({ comment: '排序' })
    order: number;

    @Column({ comment: '状态', type: 'enum', enum: CommonStatus, default: CommonStatus.NORMAL })
    status: CommonStatus;

    @Column({ comment: '佣金比例', default: 0 })
    commissionRatio: number;
}